<?php
	header('Content-Type:text/html; charset=utf-8');
	error_reporting(E_ALL & ~E_NOTICE);

    /*define('DB_HOST', '127.0.0.1');
    define('DB_PORT', '3306');
    define('DB_USER', 'root');
    define('DB_PWD', 'root');
    define('DB_NAME', 'jewelry');
    define('DB_PREFIX', 'bgy_');*/

define('DB_HOST', '127.0.0.1');
define('DB_PORT', '3306');
define('DB_USER', 'root');
define('DB_PWD', 'root');
define('DB_NAME', 'zaojiao');
define('DB_PREFIX', 'xier_');

	$conn = @mysql_connect(DB_HOST.":".DB_PORT, DB_USER, DB_PWD) or die('数据库链接失败：'.mysql_error());
	@mysql_select_db(DB_NAME) or die('数据库错误：'.mysql_error());
	@mysql_query('SET NAMES UTF8') or die('字符集错误：'.mysql_error());

?>